package com.ruoyi.user.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Setter
    @Getter
    private Long id;

    /** 用户账号信息 */
    @Setter
    @Getter
    private String phone;

    /** 用户账号密码*/
    @Setter
    @Getter
    private String password;

    /** 用户名称 */
    @Setter
    @Getter
    private String username;

    /** 创建时间 */
    @Setter
    @Getter
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /** 更新时间  */
    @Setter
    @Getter
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**删除状态*/
    @Setter
    @Getter
    private Long delTag;

    @Setter
    @Getter
    private String token;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", username='" + username + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", delTag=" + delTag +
                '}';
    }
}
